﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ObjectBakery.Tests.TestDoubles
{
    public enum AssetFormat
    {
        Jpg,
        Png,
        Eps,
        PDF,
        Docx,
        Doc,
        Html,
        Unspecified
    }

    [DataContract]
    [Serializable]
    public class Asset
    {
        public static Random rand = new Random();

        private int id;
        private string name;

        [DataMember]
        public int ID 
        {
            get 
            {
                if (id.Equals(default(int)))
                    id = rand.Next();
                return id; 
            }
            set { id = value; }
        }
        [DataMember]
        public string Name 
        {
            get { return name; }
            set { name = value; }
        }
        [DataMember]
        public AssetFormat Format;
        [DataMember]
        public byte[] Data;


    }

}
